# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=toapk
pkgver=1.0
pkgrel=0
pkgdesc="PKGBUILD to APKBUILD Conversion Tool"
url="https://lambdacreate.com/dev/toAPK"
arch="all"
license="GPL-3.0-only"
makedepends="fennel lua5.3-dev"
depends="lua5.3-sec"
source="https://gitlab.com/Durrendal/toAPK/-/archive/v$pkgver/toAPK-v$pkgver.tar.gz
	fennel5.3.patch
	"
builddir="$srcdir/toAPK-v$pkgver"

build() {
	make compile-bin
}

check() {
	make test
}

package() {
	install -Dm755 "$builddir"/src/toAPK-bin "$pkgdir"/usr/bin/toAPK
}

sha512sums="
507280fdc24730186b9ee6697b28bc97294bc6cd27ee859e0f740cecbc64b2a0c98d5daf88f02710a1b98b1d9f49f5f86fc592c8029375c26a408e45def4b0cf  toAPK-v1.0.tar.gz
5db5acd8a441de3176b57793f55da0a529feb0128e3e53b3d5574b79782193cea9aa620c49179ee4b9c1e17e06f35424aef8352d71cf32b4096d9c4d1f8a081b  fennel5.3.patch
"
